//
//  ContactUSViewController.m
//  CBT
//
//  Created by Mr.Zhang on 2019/3/2.
//  Copyright © 2019 Mr.Zhang. All rights reserved.
//

#import "ContactUSViewController.h"

@interface ContactUSViewController ()

@property (weak, nonatomic) IBOutlet UILabel *wechatShowLabel;
@property (weak, nonatomic) IBOutlet UILabel *wechatLabel;

@property (weak, nonatomic) IBOutlet UILabel *emailShowLabel;
@property (weak, nonatomic) IBOutlet UILabel *emailLabel;

@end

@implementation ContactUSViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = kLocalizedString(@"联系我们", nil);
    self.view.backgroundColor = UIColorFromRGB(0xf7f7f7);
    
    self.wechatShowLabel.text = kLocalizedString(@"微信号", nil);
    self.emailShowLabel.text  = kLocalizedString(@"电子邮箱", nil);
    self.wechatShowLabel.font = [UIFont systemFontOfSize:15];
    self.emailShowLabel.font  = [UIFont systemFontOfSize:15];
    
    self.emailLabel.font  = [UIFont systemFontOfSize:13];
    self.wechatLabel.font = [UIFont systemFontOfSize:13];
}

- (IBAction)copyWechatAction:(UIButton *)sender {
    
    [HFStatusView showSuccessMessage:kLocalizedString(@"已复制到剪贴板",nil)];
    UIPasteboard *pboard = [UIPasteboard generalPasteboard];
    pboard.string = self.wechatLabel.text;
}

- (IBAction)copyEmailAction:(UIButton *)sender {
    
    [HFStatusView showSuccessMessage:kLocalizedString(@"已复制到剪贴板",nil)];
    UIPasteboard *pboard = [UIPasteboard generalPasteboard];
    pboard.string = self.emailLabel.text;
}


@end
